home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / bbsutil / pbnet17.zip / STRUCT.ZIP / INOUT / MAILIN.BAT < prev    next >
DOS Batch File  |  1994-06-01  |  1KB  |  38 lines

  1. @echo off
  2. rem  This is \FD\INOUT\MAILIN.BAT
  3.  
  4. if exist \fd\files\*.pkt call move \fd\files\*.pkt \fd\pkttemp
  5.  
  6. rem To add a network, copy a block and change the net name (NET variable),
  7. rem and the FilenameRoot of the mail files you receive for that net.
  8. rem **** Make sure a directory with the name of the net exists off \FD\, and
  9. rem that the directories "BADPKT" and "PKTTEMP" also exist off \FD\
  10. rem The NET name should be also a valid DOS directory name. (mixed case OK)
  11.  
  12.  
  13. rem                       [BLOCK STARTS HERE]
  14. set NET=Fido
  15. set fr=0000fff8
  16. cd \fd\files
  17. for %%a in (%fr%.mo?,%fr%.tu?) do call \fd\inout\import.bat %NET% %%a
  18. for %%a in (%fr%.we?,%fr%.th?) do call \fd\inout\import.bat %NET% %%a
  19. for %%a in (%fr%.fr?,%fr%.sa?) do call \fd\inout\import.bat %NET% %%a
  20. for %%a in (%fr%.su?)          do call \fd\inout\import.bat %NET% %%a
  21. rem                       [BLOCK ENDS HERE]
  22.  
  23. set NET=Nanet
  24. set fr=0000fe80
  25. cd \fd\files
  26. for %%a in (%fr%.mo?,%fr%.tu?) do call \fd\inout\import.bat %NET% %%a
  27. for %%a in (%fr%.we?,%fr%.th?) do call \fd\inout\import.bat %NET% %%a
  28. for %%a in (%fr%.fr?,%fr%.sa?) do call \fd\inout\import.bat %NET% %%a
  29. for %%a in (%fr%.su?)          do call \fd\inout\import.bat %NET% %%a
  30.  
  31. :done
  32. if "%LASTNET%" == "" echo                No mail to import has been found ... :(
  33. if exist f:\fd\pkttemp\*.pkt call move f:\fd\pkttemp\*.pkt f:\fd\badpkt
  34. cd \fd\inout
  35. set NET=
  36. set fr=
  37. set LASTNET=
  38.